package com.yxlcommon.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author: yxl
 * @since: 2021-11-22
 **/
@Data
public class Category implements Serializable {
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;
    private String categoryName;
    private Integer categoryLevel;
    private Integer parentId;
    private Byte isAlive;
    @TableField(exist = false)
    private List<Category> categories;
    @TableField(exist = false)
    private List<WorksInfo> worksInfos;
}
